<%--@elvariable id="safeMeasures" type="java.lang.String"--%>
<%--@elvariable id="contractorId" type="java.lang.String"--%>
<%--@elvariable id="limitLicense" type="com.weitu.worklicense.entity.LimitLicense"--%>
<%--@elvariable id="workTypeId" type="java.lang.String"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>受限空间作业许可编辑</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/workLicense/limitLicense/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:180px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
    <a id="btn_execute" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-check fa-lg">执行</a>
</div>
<form id="form1" method="POST">
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">票证编号:</label>
                    <input readonly value="${limitLicense.code}" class="easyui-textbox" prompt="保存后自动生成" type="text" style="width:240px;">
                    <input type="hidden" class="hide" id="workTypeId" name="workTypeId" value="${workTypeId}">
                    <input type="hidden" class="hide" id="applyId" name="applyId">
                    <input type="hidden" class="hide" id="id" name="id" value="${limitLicense.id}">
                </div>
                <div class="form_one">
                    <label class="lable-style">申请人:</label>
                    <input id="applyUserName" name="applyUserName" value="${limitLicense.applyUserName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="applyUserId" id="applyUserId" value="${limitLicense.applyUserId}" >
                </div>
                <div class="form_one">
                    <label class="lable-style">申请部门:</label>
                    <input id="applyDeptId" name="applyDeptId" value="${limitLicense.applyDeptId}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划开始时间:</label>
                    <input id="planStartTime" name="planStartTime" value="${limitLicense.planStartTime}" class="easyui-datetimebox" data-options="required:true,validType:'startDateCompare[\'#planEndTime\']'" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">计划结束时间:</label>
                    <input id="planEndTime" name="planEndTime" value="${limitLicense.planEndTime}" class="easyui-datetimebox" data-options="required:true,validType:'endDateCompare[\'#planStartTime\']'" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">设备名称:</label>
                    <input id="deviceName" name="deviceName" value="${limitLicense.deviceName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">原有介质:</label>
                    <input id="mediumName" name="mediumName" value="${limitLicense.mediumName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">作业内容:</label>
                    <input id="workContent" name="workContent" value="${limitLicense.workContent}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">主要危险因素:</label>
                    <input id="dangerFactor" name="dangerFactor" value="${limitLicense.dangerFactor}" type="text" class="easyui-textbox" data-options="required:true" style="width: 959px;"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">生产单位安全负责人:</label>
                    <input id="produceUserName" name="produceUserName" value="${limitLicense.produceUserName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="produceUserId" id="produceUserId" value="${limitLicense.produceUserId}" >
                </div>
                <div class="form_one">
                    <label class="lable-style">施工单位:</label>
                    <input id="contractorName" name="contractorName" value="${limitLicense.contractorName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" id="contractorAuditId" value="${limitLicense.contractorAuditId}" name="contractorAuditId">
                    <input type="hidden" class="hide" id="contractorId" value="${contractorId}" name="contractorId">
                </div>
                <div class="form_one">
                    <label class="lable-style">施工单位安全负责人:</label>
                    <input id="produceStaffName" name="produceStaffName" value="${limitLicense.produceStaffName}" class="easyui-textbox" data-options="required:true" type="text" style="width:240px;">
                    <input type="hidden" class="hide" name="produceStaffId" id="produceStaffId" value="${limitLicense.produceStaffId}" >
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">危害识别:</label>
                    <input id="dangerTypeIds" name="dangerTypeIds" value="${limitLicense.dangerTypeIds}" class="easyui-combobox" data-options="required:true" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">作业人:</label>
                    <input id="workStaffName" name="workStaffName" value="${limitLicense.workStaffName}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">监护人:</label>
                    <input id="watchStaffName" name="watchStaffName" value="${limitLicense.workStaffName}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">采样检测时间:</label>
                    <input id="samplingTime" name="samplingTime" value="${limitLicense.samplingTime}" class="easyui-datetimebox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">采样点:</label>
                    <input id="samplingPoint" name="samplingPoint" value="${limitLicense.samplingPoint}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">分析人:</label>
                    <input id="samplingUserName" name="samplingUserName" value="${limitLicense.samplingUserName}" class="easyui-textbox" type="text" style="width:240px;">
                    <input type="hidden" class="hide" id="samplingUserId" name="samplingUserId" value="${limitLicense.samplingUserId}">
                </div>
            </div>
            <div style="clear: both">

                <div class="form_one">
                    <label class="lable-style">含氧量:</label>
                    <input id="oxygenContent" name="oxygenContent" value="${limitLicense.oxygenContent}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">可燃气:</label>
                    <input id="flammableGas" name="flammableGas" value="${limitLicense.flammableGas}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">有毒气:</label>
                    <input id="toxicGas" name="toxicGas" value="${limitLicense.toxicGas}" class="easyui-textbox" type="text" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two" style="width: 1100px;">
                    <label class="lable-style">主要安全措施:</label>
                    <input id="safeMeasures" name="safeMeasures" value="${safeMeasures}" type="text" class="easyui-textbox" data-options="multiline:true,required:true" style="height: 60px;width: 959px;"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>相关附件</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_two" style="width: 1100px;">
                    <%--@elvariable id="accessoryList" type="com.weitu.accessory.bean.AccessoryPackageInfo"--%>
                    <accessory:accessorySimple permission="write" packageInfos="${accessoryList}" packageKey="limit_license" uploadUserId="${sessionScope.loginUser.id}" accessoryType="docx,doc,jpg,png,pdf,jpeg"/>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>
